/**  
 * @author renbangjie renbangjie@126.com  
 * @date 2014-11-22 下午12:43:37
 * @version V1.0  
 * <b>Copyright (c)</b> 2014医信金融信息服务（上海）有限公司-版权所有<br/>
 */
package com.yjd.comm.auth.dto;

import com.yjd.comm.auth.model.IdcardDataModel;
import com.yjd.comm.enums.AuthEnums.AuthCharge;
import com.yjd.comm.enums.AuthEnums.AuthStatus;

/**
 * @author renbangjie renbangjie@126.com
 * @date 2014-11-22 下午12:43:37
 */
public class CardDataDto extends IdcardDataModel {

	/**
	 * @Fields serialVersionUID : TODO
	 */
	private static final long serialVersionUID = 1L;

	/**
	 * 用户名
	 */
	private String username;
	/**
	 * 认证状态
	 */
	private String authStatus;
	/**
	 * 是否扣费
	 */
	private String charge;
	/**
	 * 认证日期
	 */
	private String time;

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getAuthStatus() {
		AuthStatus status = AuthStatus.parse(this.getStatus());
		if (status != null) {
			return status.getLabel();
		}
		return authStatus;
	}

	public void setAuthStatus(String authStatus) {
		this.authStatus = authStatus;
	}

	public String getCharge() {
		AuthCharge authCharge = AuthCharge.parse(this.getIsprice());
		if (authCharge != null) {
			return authCharge.getLabel();
		} else {
			return "否";
		}
	}

	public void setCharge(String charge) {
		this.charge = charge;
	}

	public String getTime() {
		return time;
	}

	public void setTime(String time) {
		this.time = time;
	}

}
